#/bib/bash
sz=`grep -c "ipv6.disable=1" /etc/default/grub `
if [ $sz -eq 0 ];then
sed -i '/GRUB_CMDLINE_LINUX/s/"$/ ipv6.disable=1"'/g /etc/default/grub
grub2-mkconfig -o /boot/grub2/grub.cfg
fi
